function showpageCount(a) {
    for (var k = home_page_url, b = [], c = 1, d = 1, g = 0, m = 0, n = 0, e = "", f = "", p = "", q = 0, h; h = a.feed.entry[q]; q++) {
        var r = h.published.$t.substring(0, 19) + h.published.$t.substring(23, 29);
        timestamp = encodeURIComponent(r);
        h = h.title.$t;
        h == "" || 0 != g && g % pageCount != pageCount - 1 || (-1 != k.indexOf(timestamp) && (c = d), h != "" && d++, b[b.length] = "/search?updated-max=" + timestamp + "&max-results=" + pageCount);
        g++;
    }
    for (a = 0; a < b.length; a++) {
        a >= c - displayPageNum - 1 && a < c + displayPageNum && (0 == m && a == c - 2 && (f = 2 == c ? "<span class='showpage'><a href='/'>" + upPageWord + "</a></span>" : "<span class='showpage'><a href='" + b[a] + "'>" + upPageWord + "</a></span>", m++), e = a == c - 1 ? e + ("<span class='showpagePoint'>" + c + "</span>") : 0 == a ? e + "<span class='showpageNum'><a href='/'>1</a></span>" : e + ("<span class='showpageNum'><a href='" + b[a] + "'>" + (a + 1) + "</a></span>"), 0 == n && a == c && (p = "<span class='showpage'> <a href='" + b[a] + "'>" + downPageWord + "</a></span>", n++));
    }
    1 < c && (e = "" + f + " " + e + " ");
    e = "<div class='showpageArea'><span style='color:#000' class='showpageOf'> Pages(" + (d - 1) + ")</span>" + e;
    c < d - 1 && (e += p);
    1 == d && d++;
    e += "</div>";
    b = document.getElementsByName("pageArea");
    c = document.getElementById("blog-pager");
    2 >= d && (e = "");
    for (a = 0; a < b.length; a++) {
        b[a].innerHTML = e;
    }
    b && 0 < b.length && (e = "");
    c && (c.innerHTML = e);
}

function showpageCount2(a) {
    for (var k = home_page_url, b = [], c = -1 != k.indexOf("/search/label/") ? k.substr(k.indexOf("/search/label/") + 14, k.length) : "", c = -1 != c.indexOf("?") ? c.substr(0, c.indexOf("?")) : c, d = 1, g = 1, m = 0, n = 0, e = 0, f = "", p = "", q = "", h = "<span class='showpageNum'><a href='/search/label/" + c + "?&max-results=" + pageCount + "'>", k = home_page_url, r = 0, l; l = a.feed.entry[r]; r++) {
        var s = l.published.$t.substring(0, 19) + l.published.$t.substring(23, 29);
        timestamp = encodeURIComponent(s);
        l = l.title.$t;
        l == "" || 0 != m && m % pageCount != pageCount - 1 || (-1 != k.indexOf(timestamp) && (d = g), l != "" && g++, b[b.length] = "/search/label/" + c + "?updated-max=" + timestamp + "&max-results=" + pageCount);
        m++;
    }
    for (a = 0; a < b.length; a++) {
        a >= d - displayPageNum - 1 && a < d + displayPageNum && (0 == n && a == d - 2 && (p = 2 == d ? h + upPageWord + "</a></span>" : "<span class='showpage'><a href='" + b[a] + "'>" + upPageWord + "</a></span>", n++), f = a == d - 1 ? f + ("<span class='showpagePoint'>" + d + "</span>") : 0 == a ? h + "1</a></span>" : f + ("<span class='showpageNum'><a href='" + b[a] + "'>" + (a + 1) + "</a></span>"), 0 == e && a == d && (q = "<span class='showpage'> <a href='" + b[a] + "'>" + downPageWord + "</a></span>", e++));
    }
    1 < d && (f = "" + p + " " + f + " ");
    f = "<div class='showpageArea'><span style='color:#000' class='showpageOf'> Pages(" + (g - 1) + ")</span>" + f;
    d < g - 1 && (f += q);
    1 == g && g++;
    f += "</div>";
    b = document.getElementsByName("pageArea");
    d = document.getElementById("blog-pager");
    2 >= g && (f = "");
    for (a = 0; a < b.length; a++) {
        b[a].innerHTML = f;
    }
    b && 0 < b.length && (f = "");
    d && (d.innerHTML = f);
}
var home_page_url = location.href,
    thisUrl = home_page_url;
if (-1 != thisUrl.indexOf("/search/label/")) {
    var lblname1 = -1 != thisUrl.indexOf("?updated-max") ? thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?updated-max")) : thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?&max"))
}
var home_page = "/";
if (-1 == thisUrl.indexOf("?q=")) {
    if (-1 == thisUrl.indexOf("/search/label/")) {
        document.write("<script src='" + home_page + "feeds/posts/summary?alt=json-in-script&callback=showpageCount&max-results=99999'>\x3c/script>");
    } else {
        document.write("<script src='" + home_page + "feeds/posts/full/-/" + lblname1 + "?alt=json-in-script&callback=showpageCount2&max-results=99999'>\x3c/script>");
    }
}
